package Package.IOStream.CharacterStream.Text.Text2;

import java.io.*;

public class Text2 {
    public static final void Text2() throws IOException {
        BufferedReader Br=new BufferedReader(new FileReader("D:\\insert\\a.java"));
        BufferedWriter Bw=new BufferedWriter(new FileWriter("D:\\insert\\javase\\c.java"));
        char[] chs = new char[1024];
        int len;
        while ((len=Br.read(chs))!=-1) {
                Bw.write(chs,0,len);
        }
//释放资源
        Bw.close();
        Br.close();
    }
}
